﻿@model DiplomaWeb.Models.Student.StudentListViewModel
<script type="text/javascript" language="javascript">
    $("#Students").change(function () {
        var selectValue = $(this).val();
        $("#student-stats").html('');
        var path = '@Url.RouteUrl("Default", new {controller = "Reviewer", action = "StudentProperties"})';
        $.ajax({
            url: path,
            type: "POST",
            async: false,
            data: ({ studentId: selectValue }),
            success: function (data) {
                $("#student-stats").html(data);
            }
        });
    });
</script>
@Html.DropDownList("Students", Model.StudentList)
